<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>动画制作</title>
    <style>
    .rui{
            width: 300px;
            height: 300px;
            margin: 100px auto;
            position: relative;
        }
        .guang{
            position: absolute;
            left: -75px;
             top: -56px;
             animation: gu 1s linear 0s infinite alternate;
        }
        @keyframes gu{
            from{
                opacity: 0;
            }
            to {
                opacity: 1;
            }
            
        }
        .xiang{
            width: 200px;
            height: 200px;
            margin: 600px auto;
            animation: gu1 1s linear 0s infinite alternate;
       
        }
        .x1{
            position:absolute;
            top: 1000px;
            left: 900px;
            width: 2px;
            height: 100px;
            background-color: black;
            animation: gu2 1s linear 0s infinite   ;
        }
        @keyframes gu1{
            from{
                transform: translateX(-20px)translateY(-20px);
            }
           to{
            transform: translateX(20px)translateY(20px);
           }

        }
        @keyframes gu2{
         0%{
                transform: rotate(45deg) translateY(-150px);
                opacity: 0;
            }
           50%{
                transform: rotate(45deg) translateY(0px);
                opacity: 1;
            }
            100%{
                transform: rotate(45deg) translateY(150px);
                opacity: 0;
            }
        }
    </style>
</head>
<body>
    <div class="rui">
        <img class="deng" src="image/dengpao.png" alt="">
        <img class="guang" src="image/guang.png">
    </div>
    <div class="xiang">
        
        <img src="image/huojian.png" alt="">
    </div>
    <div class="x1"></div>
</body>
</html>